﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace DockSample
{
    class ProcessDiagram: InformationDiagram
    {
        #region 构造函数
        public ProcessDiagram(Point point, int width = 140, int height = 80)
            :base(point, width, height)
        {
            name = "Process";
        }
        #endregion
        //***********************************************************************************
        public override void Drawing(Graphics g, DummyModelForm m)
        {
            //绘制对象
            Pen pen = new Pen(Color.Brown, 1);
            Rectangle rect = new Rectangle(upLeftpoint.X, upLeftpoint.Y, width, height);
            g.DrawEllipse(pen, rect);
            //显示文字
            base.Drawing(g, m);
        }
    }
}
